package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /*
     * 新增菜品口味
     * */
    void insert(List<DishFlavor> list);

    /*
    * 根据菜品id删除口味
    * */
    void delete(List<Long> ids);

    /*
    * 根据菜品id查询口味
    * */
    @Select("SELECT * FROM dish_flavor WHERE dish_id = #{dishId}")
    List<DishFlavor> getDishFlavor(Long dishId);

}
